#include <QtWidgets/QApplication>
#include "launcher.h"
#include <QtWidgets/QStyleFactory>
#include <QtWidgets/QDesktopWidget>

//font: 75 12pt Ubuntu;

QString sheetStyle = " QToolButton{background-color:rgb(0,0,0);color:rgb(255, 255, 255);border-radius:0px;border:0px groove gray ;border-style:outset;}"\
                                        "QCheckBox { color: white; }"\
                                        "QLabel{color:green}"\
                                        "QCheckBox { spacing:25px;font-size:20px; }"\
                                        "QCheckBox::indicator { width:25px;height:25px; }"\
                                        "QCheckBox:checked { color: green; }";




int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QFont font;
    font.setPointSize(8);
    font.setFamily("msyh");
    a.setFont(font);

    QStyleFactory style;

    a.setStyle(style.create(sheetStyle));
    a.setStyleSheet(sheetStyle);

    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));

    Launcher w;
    int  width=    QApplication::desktop()->width();
    int height=    QApplication::desktop()->height();
    w.setFixedSize(width,height);
    w.setWindowFlags(Qt::FramelessWindowHint);
    w.show();

    return a.exec();
}
